package com.mt.roll.wms.params;

import com.mt.roll.core.base.BaseParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @Desc: ""
 * @Author: caixiang
 * @DATE: 2021/3/10 10:19
 */
@EqualsAndHashCode(callSuper = false)
@Data
@Builder
@ApiModel(value = "废品报废 参数对象", description = "废品报废 参数对象")
public class ScrapSubstrateLogParam extends BaseParam {
    /**
     * ID
     */
    @ApiModelProperty(value = "废品报废id，只在update的时候传，add不用传" , example = "1")
    private Long id;

    /**
     * 基板ID
     */
    @ApiModelProperty(value = "基板id，只在update的时候传，add不用传" , example = "001")
    private String substrateId;

    /**
     * 来源： 00A / 00C
     */
    @ApiModelProperty(value = "来源" , example = "00A")
    private String source;

//    /**
//     * 废品等级
//     */
//    @ApiModelProperty(value = "废品等级" , example = "（这个字段舍弃 不填）固定（加工可用、完全废品）")
//    private String scrapGrade;

    /**
     * 登记人，关联T_WORKER 表
     */
    @ApiModelProperty(value = "登记人，关联T_WORKER 表" , example = "1347468517938196481")
    private Long registerPerson;

    /**
     * 登记时间
     */
    @ApiModelProperty(value = "登记时间" , example = "2020-03-12T23:00:28.747")
    private LocalDateTime registerTime;

    /**
     * 报废原因 关联T_SCRAP_INFORMATION 表 id
     */
    @ApiModelProperty(value = "报废原因 关联T_SCRAP_INFORMATION 表 id" , example = "1")
    private Long scrapReasonId;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注" , example = "备注1")
    private String remark;

    /**
     * 关联T_EQUIPMENT（产生废片的 设备id）
     */
    @ApiModelProperty(value = "关联T_EQUIPMENT（产生废片的 设备id）" , example = "关联T_EQUIPMENT（产生废片的 设备id）")
    private Long equipmentId;

    /**
     * 基板录入类型：1=自动录入、2=手动录入
     */
    @ApiModelProperty(value = "基板录入类型：1=自动录入、2=手动录入" , example = "1")
    private Integer entryType;

    /**
     * 工单ID (关联工单表 T_WORK_ORDER)
     */
    @ApiModelProperty(value = "工单ID (关联工单表 T_WORK_ORDER)" , example = "1")
    private Long workOrderId;

    @ApiModelProperty(value = "登记地点" , example = "默认00A")
    private String placeOfRegis;
}
